﻿namespace MessagingWPF.Infrastructure
{
	/// <summary>
	/// A subscriber for the specified type of messages.
	/// </summary>
	/// <typeparam name="TMessage">
	/// The type of message the subscriber is interested in.
	/// </typeparam>
	public interface ISubscriber<TMessage>
	{
		/// <summary>
		/// Handles the specified message.
		/// </summary>
		/// <param name="message">The message to be handled.</param>
		void Handle(TMessage message);
	}
}